<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>商品管理-商品分类</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
  </head>
  <body style="margin:0 auto;padding:0">   
  	<form id="goodsGroupForm" method="post">
		<table style="width:100%;font-size:12px;padding-top:14px;" align="center" cellpadding="3">
			<tr>
				<td align="right" width="80">分类名称：</td>
				<td>    
                     <input name="bggName" class="mini-textbox" required="true" width="260"/>
                 </td>
			</tr>
			<tr>
				<td align="right">上级分类：</td>
				<td>    
                     <input id="bggParentTree" name="bggParent" class="mini-treeselect" multiSelect="false" 
        				valueField="bggId" parentField="bggParent" textField="bggName" 
        				url="<%=path %>/lazyLoadGoodsGroupTree.do" width="190" showTreeIcon="false"/>
        			 <div id="topBggType" class="mini-checkbox" text="顶级分类" 
        			 	oncheckedchanged="GoodsGroupFormHandler.selectedTopBggType"></div>
                 </td>
			</tr>
			<tr>
				<td align="right">数量单位：</td>
				<td>    
                     <input name="bggUnits" class="mini-textbox" width="260"/>
                 </td>
			</tr>
			<tr>
				<td align="right">分类排序：</td>
				<td>    
                     <input name="bggOrder" class="mini-textbox" required="true" width="260"/>
                 </td>
			</tr>
			<tr>
				<td align="right">设置推荐：</td>
				<td>    
				    <div id="bggBest_gft" name="bggBest" class="mini-checkbox" 
			 			text="精品？" trueValue="1" falseValue="0" style="float:left;"></div>
 			 		<div id="bggNew_gft" name="bggNew" class="mini-checkbox" 
   			 			text="新品？" trueValue="1" falseValue="0" style="float:left;"></div>
   			 		<div id="bggHot_gft" name="bggHot" class="mini-checkbox" 
   			 			text="热销？" trueValue="1" falseValue="0" style="float:left;"></div>
   			 		<div id="bggBuy_gft" name="bggBuy" class="mini-checkbox" 
   			 			text="团购？" trueValue="1" falseValue="0" style="float:left;"></div>
                 </td>
			</tr>
			<tr>
				<td align="right">价格区间：</td>
				<td>    
                     <input name="bggSection" class="mini-textbox" required="true" width="260"/>
                 </td>
			</tr>
			<tr>
				<td align="right">属性配置：</td>
				<td>    
                      <input id="bgtCob" class="mini-combobox" width="260"
				        showNullItem="true" textField="bgtName" valueField="bgtId" 
				        onvaluechanged="GoodsGroupFormHandler.changeBgtAttrByTypeId"/> 
                 </td>
			</tr>
			<tr>
				<td align="right">属性列表：</td>
				<td>    
                      <input id="bgtAttrCob" class="mini-combobox" multiSelect="true"
        				valueField="btaId" textField="btaName" width="260"/>
                 </td>
			</tr>
			<tr>
				<td align="right">分类状态：</td>
				<td>    
                     <div id="bggState" name="bggState" class="mini-radiobuttonlist" 
		    		 	repeatItems="2" repeatLayout="table" repeatDirection="horizontal"  
		    		 	textField="text" valueField="value">
					</div> 
                 </td>
			</tr>
			<tr>
				<td colspan="2" align="center" style="height:50px;">
					<input class="mini-button" text="保存" iconCls="icon-save" plain="false" 
      					onclick="GoodsGroupFormHandler.save"/>&nbsp;&nbsp;
      				<input class="mini-button" text="关闭" iconCls="icon-cancel" plain="false" 
      					onclick="GoodsGroupFormHandler.closeMiniWin"/>
				</td>
			</tr>
		</table>
  	</form>
  </body>
  <script src="handler/GoodsGroupFormHandler.js" type="text/javascript"></script>
</html>